﻿using Sodao.Demo.Application.Interfaces;
using Sodao.Demo.Domain.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sodao.Demo.Application.Services
{
    public class DemoService : IDemoService
    {
        public readonly IDemoRepository _demorespository;

        public DemoService(IDemoRepository demoRepository)
        {
            _demorespository = demoRepository;
        }
        public async Task<int> GetPageList(string name, int pageIndex, int pageSize)
        {
            return await _demorespository.GetPageList(name, pageIndex, pageSize);
        }
    }
}
